package com.moorror.codegenvel.view.window.codegenxrender.utils;

import com.intellij.openapi.project.Project;
import com.moorror.codegenvel.db.sqlite.entity.CodeGenXRenderConnect;
import com.moorror.codegenvel.utils.TabLeftUtils;
import com.moorror.codegenvel.view.window.codegenxrender.tree.MTTreeCellCodeGenXRenderConnectName;

/**
 * @Author jiyanghuang
 * @Date 2025/10/27 01:26
 */
public class TabLeftXRenderUtils {

    public static CodeGenXRenderConnect model(Project project) {
        MTTreeCellCodeGenXRenderConnectName connectName = TabLeftUtils.rootModel(project);
        if (null == connectName) {
            throw new RuntimeException("invalid param");
        }
        return connectName.getModel();
    }
}
